home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 November: Tool Chest / Dev.CD Nov 94.toast / Tool Chest / !Interfaces / Universal Interfaces 2.0a1 / CIncludes / Disks.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-07-17  |  2.2 KB  |  104 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        Disks.h
  3.  
  4.      Copyright:    © 1984-1994 by Apple Computer, Inc.
  5.                  All rights reserved.
  6.  
  7.      Version:    Universal Interfaces 2.0a1.  ETO #15, MPW prerelease.  Sunday, July 17, 1994. 
  8.  
  9.      Bugs?:        If you find a problem with this file, send the file and version
  10.                  information (from above) and the problem description to:
  11.  
  12.                      Internet:    apple.bugs@applelink.apple.com
  13.                      AppleLink:    APPLE.BUGS
  14.  
  15. */
  16.  
  17. #ifndef __DISKS__
  18. #define __DISKS__
  19.  
  20.  
  21. #ifndef __TYPES__
  22. #include <Types.h>
  23. #endif
  24. /*    #include <ConditionalMacros.h>                                */
  25.  
  26. #ifndef __OSUTILS__
  27. #include <OSUtils.h>
  28. #endif
  29. /*    #include <MixedMode.h>                                        */
  30.  
  31. #ifdef __cplusplus
  32. extern "C" {
  33. #endif
  34.  
  35. #if GENERATINGPOWERPC
  36. #pragma options align=mac68k
  37. #endif
  38.  
  39. #ifdef __CFM68K__
  40. #pragma lib_export on
  41. #endif
  42.  
  43.  
  44. enum {
  45.     sony,
  46.     hard20
  47. };
  48.  
  49. struct DrvSts {
  50.     short                            track;                        /* current track */
  51.     char                            writeProt;                    /* bit 7 = 1 if volume is locked */
  52.     char                            diskInPlace;                /* disk in drive */
  53.     char                            installed;                    /* drive installed */
  54.     char                            sides;                        /* -1 for 2-sided, 0 for 1-sided */
  55.     QElemPtr                        qLink;                        /* next queue entry */
  56.     short                            qType;                        /* 1 for HD20 */
  57.     short                            dQDrive;                    /* drive number */
  58.     short                            dQRefNum;                    /* driver reference number */
  59.     short                            dQFSID;                        /* file system ID */
  60.     char                            twoSideFmt;                    /* after 1st rd/wrt: 0=1 side, -1=2 side */
  61.     char                            needsFlush;                    /* -1 for MacPlus drive */
  62.     short                            diskErrs;                    /* soft error count */
  63. };
  64. typedef struct DrvSts DrvSts;
  65.  
  66. struct DrvSts2 {
  67.     short                            track;
  68.     char                            writeProt;
  69.     char                            diskInPlace;
  70.     char                            installed;
  71.     char                            sides;
  72.     QElemPtr                        qLink;
  73.     short                            qType;
  74.     short                            dQDrive;
  75.     short                            dQRefNum;
  76.     short                            dQFSID;
  77.     short                            driveSize;
  78.     short                            driveS1;
  79.     short                            driveType;
  80.     short                            driveManf;
  81.     short                            driveChar;
  82.     char                            driveMisc;
  83.     SInt8                            filler;
  84. };
  85. typedef struct DrvSts2 DrvSts2;
  86.  
  87. extern pascal OSErr DiskEject(short drvNum);
  88. extern pascal OSErr SetTagBuffer(void *buffPtr);
  89. extern pascal OSErr DriveStatus(short drvNum, DrvSts *status);
  90.  
  91. #ifdef __CFM68K__
  92. #pragma lib_export off
  93. #endif
  94.  
  95. #if GENERATINGPOWERPC
  96. #pragma options align=reset
  97. #endif
  98.  
  99. #ifdef __cplusplus
  100. }
  101. #endif
  102.  
  103. #endif /* __DISKS__ */
  104.